﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Transit_Main.aspx.cs" Inherits="Vehicle.Web.Pages.Transit.Transit_Main"  %>
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>物流管理系统</title>
   <!-- 引用CSS与JS-->
<link href="../../Style/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 132px;
        }
    </style>
</head>
<body>
<form id="form1" runat="server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">运力查询</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../images/mail_rightbg.gif"><img src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="../../images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：运力查询--运力综合查询</td>
          </tr>
          <tr>
            <td height="15"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
        </table>
          </td>
      </tr>
		 <tr>
          <td height=25>
           <!-- 筛选数据选择项 -->
            <table cellSpacing="0" cellPadding="2" border="0">
              <tbody>
              <tr>
                <td class="left_txt">筛选数据：</td>
                <td class="left_txt3"><asp:RadioButton ID="rbt_Motorcade" runat="server" Text="承运车队"  GroupName="select" Checked="true" />
                   &nbsp;&nbsp;&nbsp;选择车队：&nbsp;&nbsp;<asp:DropDownList ID="Drop_Select" runat="server" 
                        AutoPostBack="True" onselectedindexchanged="Drop_Select_SelectedIndexChanged">
                    </asp:DropDownList>&nbsp;&nbsp;承运任务：&nbsp;&nbsp;<asp:DropDownList 
                        ID="drop_M_transit" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="drop_M_transit_SelectedIndexChanged">
                        <asp:ListItem Value="0" Text="否" ></asp:ListItem>
                         <asp:ListItem Value="1" Text="是"></asp:ListItem>
                          <asp:ListItem Value="2" Text="全部" Selected="True"></asp:ListItem>
                    </asp:DropDownList>&nbsp;&nbsp;（根据您的选择进行筛选数据）
                  </td>
                  </tr>
                  <tr>
                  <td>&nbsp;</td>
                  <td class="left_txt3"><asp:RadioButton ID="rbt_Vehicle" runat="server" Text="承运车辆"  GroupName="select"  />
                    &nbsp;&nbsp;&nbsp;输入车牌号：<asp:TextBox ID="txt_V_LicenseNum" runat="server"></asp:TextBox>&nbsp;&nbsp;<asp:Button ID="btn_Select" runat="server" 
                          Text="筛选" onclick="btn_Select_Click" />       
                   </td>
                    </tr></tbody></table></td></tr>
				 <tr>
				 <!-- 定义AJAX控件  -->
          <td><asp:ScriptManager ID="SM_AJAX" runat="server">
                 </asp:ScriptManager>   
				 <asp:UpdatePanel ID="UPanel" runat="server">
				 <ContentTemplate>
				  <!-- 定义Repeater控件用于绑定数据  -->
               <asp:Repeater ID="ReptShow" runat="server" onitemdatabound="ReptShow_ItemDataBound"   >
              <HeaderTemplate>
                <table id="grid" class="Tablt_All"  cellSpacing="1" cellPadding="2" rules="all" border="0">
              <tbody>
                    <tr class="main_tab">  
                <td width="10%">所属车队</td>
                <td width="10%">车牌号</td>  
                 <td width="8%">所属省市</td>
                <td width="8%">车型</td>
                 <td width="10%">载重(吨)</td>
                 <td width="10%">车辆路线</td>
                <td width="10%">驾驶员</td>
                  <td width="8%">承运任务</td>
                </tr>
              </HeaderTemplate>
              <ItemTemplate>    
                 <tr class="TR_All">
                <td><a href="../Motorcade/Motorcade_View.aspx?id=<%# Eval("M_ID")%>" > <asp:Label ID="lab_M_ID" runat="server" Text='<%# Eval("M_ID")%>'></asp:Label></a></td>
                <td><a href ="../Vehicles/Vehicles_View.aspx?id=<%# Eval("V_ID")%>" ><%# Eval("V_LicenseNum")%></a></td> 
                <td><%# Eval("V_ProvinceCity")%></td>  
                <td><%# Eval("V_Model")%></td>
                  <td><%# Eval("V_Load")%></td>     
                  <td><%# Eval("V_Route")%></td> 
                <td><a href="../Pilot/Pilot_View.aspx?id=<%# Eval("P_ID") %>"><asp:Label ID="lab_P_ID" runat="server" Text='<%# Eval("P_ID")%>'></asp:Label></a></td>
                 <td><asp:Label ID="lab_V_Transit" runat="server" Text='<%# Eval("V_Transit")%>'></asp:Label></td>
                </tr>
              </ItemTemplate>          
              <FooterTemplate>
               </tbody></table>
              </FooterTemplate>
              </asp:Repeater>   
              <font style="text-align:center; color:Red;"><%= onshow %></font>
               <!-- 注册外部控件调用AJAX控件  -->
              </ContentTemplate> 
               <Triggers>
               <asp:AsyncPostBackTrigger ControlID="btn_Select" />
               <asp:AsyncPostBackTrigger ControlID="Drop_Select" />
               <asp:AsyncPostBackTrigger ControlID="drop_M_transit" />
               </Triggers>
   </asp:UpdatePanel> </td>              
 <tr>
          <td align=right height=25>
            <img src="../../images/pic10.gif" height="13" />
            <font class="left_txt">
                <asp:Button ID="btn_Excel" runat="server" Text="导出Excel" onclick="btn_Excel_Click" /></font>&nbsp;&nbsp;&nbsp;
             </td></tr>   
			 <tr>
			 <td>
			</td>       
         </tr>
    </table></td>
    <td background="../../images/mail_rightbg.gif">&nbsp;</td>
  </tr> 
     
  <tr>
    <td valign="middle" background="../../images/mail_leftbg.gif"><img src="../../images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="../../images/buttom_bgs.gif"><img src="../../images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="../../images/mail_rightbg.gif"><img src="../../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
<asp:UpdateProgress ID="UProgress" runat="server" AssociatedUpdatePanelID="UPanel">
<ProgressTemplate>
<font class="left_txt">数据提交中....</a></font>
</ProgressTemplate>
</asp:UpdateProgress>
</form>
</body>